#include <iostream> //cin,cout
#include <fstream> //ifstream
#include <vector> // vector

#include "../RPTree.h"
#include "../RPTreeParam.h"

int main( int argc, char **argv)
{
	RPTree *tree;

	if( argc == 2 )
	{
		ifstream file(argv[1]);
		tree = RPTree::load( file );
	}
	else
	{
		tree = RPTree::load( cin );
	}

	cout<<endl<<" ... Loaded ..."<<endl;
	tree->save(cout);
	return 0;
}
